import net from '../../utils/net.js'
Page({
  data: {
    cardInfoList:[]
  },
  toAddCreditCard:function() {
    wx.navigateTo({
      url: "/pages/creditCardCreateStep1/index",
    })
  },
  onLoad: function () {
    this.getData()
  },
  getData() {
    let that = this
    net.http({
      url: '/api/index/index?method=credit_card_list',
      isShowLoading: true,
      successCb: function (res) {
        that.setData({
          cardInfoList: res.data
        })
      }
    })
  },
  onPullDownRefresh: function () {
    this.getData()
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})